package Day15;

/**
 * @Author kalista
 * @Description
 * @Date 2020/11/23  15:38
 **/
public class MyTheard1 extends  Thread{



    private Account account;

    public MyTheard1(Account account){
        this.account = account;
    }


    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        double qian = 5000;
        account.withdrawMoney(qian);
        System.out.println("【" + Thread.currentThread().getName() + "】" + account);
    }



}
